package com.mayikt.classloader;

import sun.misc.Launcher;

/**
 * @ClassName Test011
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test011 {
    public static void main(String[] args) {
        System.out.println(Test011.class.getClassLoader().getParent().getParent());
//        ClassLoader.getSystemClassLoader().loadClass();
        Thread.currentThread().setContextClassLoader(Test011.class.getClassLoader().getParent().getParent());
        MayiktEntity mayiktEntity = new MayiktEntity();

////        Launcher
//        System.out.println(     Thread.currentThread().getContextClassLoader());
    }
}
